package com.healthcare.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.healthcare.admin.pojo.Transferttype;
import com.healthcare.admin.mapper.TransferttypeMapper;
import com.healthcare.admin.service.TransferttypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 转诊类型表 服务实现类
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-12
 */
@Service
public class TransferttypeServiceImpl extends ServiceImpl<TransferttypeMapper, Transferttype> implements TransferttypeService {

    @Autowired(required = false)
    private TransferttypeMapper transferttypeMapper;

    /**
     * 根据id删除门诊信息
     * @param id
     */
    @Override
    public void deleteUserInfoById(Integer id) {
        transferttypeMapper.deleteById(id);
    }
    /**
     * 查询门诊列表
     * @param pageParam
     */
    @Override
    public void pageQuery(Page<Transferttype> pageParam) {
        QueryWrapper<Transferttype> queryWrapper = new QueryWrapper<>();
        baseMapper.selectPage(pageParam, queryWrapper);
    }
}
